package com.jiantong.work.service;
import io.terminus.common.model.Paging;
import com.jiantong.work.model.PurchaseRecord;
import io.terminus.common.model.Response;

import java.util.Date;
import java.util.Map;

/**
 * Created by maowenjie on 2017/3/20.
 */
public interface PurchaseRecordReadService {
    /**
     * id 查找
     * @param id
     * @return
     */
    Response<PurchaseRecord> findById(Long id);
    /**
     * @param id 主 键
     * @return 状态
     */
    Response<Map<String, Object>> findStatusById(Long id);
    /**
     * 根据id
     * 分页查询
     * @return
     */
    Response<Paging<PurchaseRecord>> pagingPurchaseRecord(Integer pageNo, Integer pageSize);
    /**
     * 根据养殖场名，日期
     * 分页查询
     * @return
     */
    Response<Paging<PurchaseRecord>> pagingRecord(Integer pageNo, Integer pageSize, Integer status,Long factoryId, Date fromDate, Date toDate);

}
